package com.clj.cloud.nacos_skywalking_producer.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping(value = "/sayHello")
    String sayHello(@RequestParam(value = "name") String name) {
        return "Hello, " + name;
    }

    @GetMapping(value = "/findByName")
    String findByName(@RequestParam(value = "name") String name) {
        throw new RuntimeException("测试");
    }
}
